﻿using System.Configuration;
using System.Data.SqlClient;

namespace DataAccess
{
    public sealed class DBConnection
    {
        private DBConnection(){}
        private static readonly string SqlConnectionString = ConfigurationManager.ConnectionStrings["SqlConnectionString"].ConnectionString;
        public static SqlConnection SqlGetConnection()
        {
            return new SqlConnection(SqlConnectionString);
        }
    }
}
